package day0703;

public class Test {

	public static void main(String[] args) {
		Test a = new Test();
		int b = a.c(8,5,2,0);
		System.out.println(b);		
	}
	public int c(int...arr) {
		int b = 0;
		int i;
		for(i = 0;i<arr.length;i++) {
			b += arr[i];			
		}
		return b;		
	}
}
